#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import paper_blueprint
from api_1_0.paperResource.paperResource import PaperResource
from api_1_0.paperResource.paperOtherResource import PaperOtherResource

api = Api(paper_blueprint)

api.add_resource(PaperResource, '/<paper_id>', '', endpoint='Paper')


@paper_blueprint.route('/update/<paper_id>', methods=['PUT'], endpoint='PaperUpdate')
def update(paper_id):
    return PaperOtherResource.sensitive_update(paper_id)
